#define _CRT_SECURE_NO_WARNINGS 1
#include "DList.h"
int main()
{
	DListNode* head = (DListNode*)malloc(sizeof(DListNode));
	head->data = -1;
	head->next = head;
	head->prove = head;
	DListPushBack(head, 1);
	DListPushBack(head, 2); 
	DListPushBack(head, 3);
	DListPushBack(head, 4);
	DListPushBack(head, 5);
	DListPushBack(head, 6);
	DListPrint(head);
	/*DListPushFront(head, 1);
	DListPushFront(head, 2);
	DListPushFront(head, 3);
	DListPushFront(head, 4); 
	DListPushFront(head, 5);
	DListPushFront(head, 6);
	DListPrint(head);*/
	/*DListPopBack(head);
	DListPopBack(head); 
	DListPopBack(head); 
	DListPopBack(head);
	DListPopBack(head); 
	DListPopBack(head); */
	//DListPopBack(head);
	DListPopBack(head);
	DListPrint(head);
	DListInsertAfter(head, 4, 11);
	DListInsertBefor(head, 4, 9);
	DListChange(head, 4, 10);
	DListErase(head, 1);
	DListPrint(head);
	DListDestroy(head);
	free(head);
	head = NULL;
	return 0;
}

